package com.simple.behavior.classandclass.iterator;

import com.simple.LogUtil;

/**
 * @author simple
 * @version 1.0
 * @date 2019-01-04 17:47
 * @since 1.0
 */
public class Start {
    public static void main(String[] args) {
        Collection collection = new MyCollection();
        Iterator iterator = collection.iterator();
        while (iterator.hasNext()) {
            LogUtil.info("下一个: " + iterator.next());
        }
    }
}
